﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MessageManager.aspx.cs" Inherits="sysadmin_TaskManager_MessageManager" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
     <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="titbg_right">
            <tr>
                <td class="titbg_left">
                    <asp:Label ID="lbl_InfoTitle" runat="server" Text=""></asp:Label>
                </td>
            </tr>
        </table>
        <br />
     <asp:Label ID="lab_Msg" runat="server" ForeColor="Orangered" Text="提示信息"></asp:Label>
        <table border="0" cellpadding="0" cellspacing="0" class="btnbg" width="100%">
            <tr>
                <td nowrap="nowrap">
                    <asp:CheckBox ID="chkAll" runat="server" Text="全选/取消" OnCheckedChanged="chkAll_CheckedChanged"
                        AutoPostBack="True" ValidationGroup="gs" />
                    <asp:CheckBox ID="chkCancel" runat="server" Text="取消" OnCheckedChanged="chkCancel_CheckedChanged"
                        AutoPostBack="True" ValidationGroup="gs" />&nbsp;
                    <asp:Button ID="btn_DelCheck" runat="server" CssClass="inputBotton" OnClick="btn_DelCheck_Click"
                        OnClientClick="return confirm('您确认删除吗?')" Text="删除选中" />
                    <asp:Button ID="btn_AddMessage" runat="server" CssClass="inputBotton" Text=" 添加新消息 "
                        OnClick="btn_AddMessage_Click" /></td>
                <td>
                    <asp:TextBox ID="txt_SearchKey" runat="server"></asp:TextBox>
                    <asp:Button ID="btn_SortSearch" runat="server" Text="搜索" CssClass="inputBotton" OnClick="btn_SortSearch_Click" />&nbsp;
                   
                </td>
            </tr>
        </table>
        <asp:GridView ID="gvMessage" runat="server" AutoGenerateColumns="False" 
             GridLines="None" BorderWidth="0px" OnRowCommand="gvPaperList_RowCommand" OnRowDataBound="gvPaperList_RowDataBound"
            CssClass="mainList" Width="100%" AllowSorting="True">
            <Columns>
              <%--  <asp:TemplateField HeaderText="试题内容">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server"><%#Eval("QuestionContent") %></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>--%>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="Chbox_Check" runat="server" />
                        <asp:Label ID="lab_MsgID" runat="server" Text='<%#Eval("MsgID") %>' Visible="false"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="MsgID" HeaderText="消息ID"  />
                <asp:BoundField DataField="MsgTitle" HeaderText="标题" />
                <asp:BoundField DataField="MsgCreateTime" HeaderText="创建时间" 
                      />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="ibtnDelete" runat="server" CommandArgument='<%#Eval("MsgID") %>'
                            OnClientClick="return confirm('您确认删除吗?')" CommandName="mydelete">删除</asp:LinkButton>
                        &nbsp;&nbsp;
                        <asp:LinkButton ID="ibtnEditor" runat="server" CommandArgument='<%#Eval("MsgID") %>'
                            CommandName="myeditor">编辑</asp:LinkButton>    &nbsp;&nbsp;
                             <%--<asp:LinkButton ID="btn_view" runat="server" CommandArgument='<%#Eval("MsgID") %>'
                            CommandName="see">查看</asp:LinkButton>--%>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <%=GetLanageValueByKey("NoContent_msg", PowerCreator.LMS.Language.LanagetItemType.Page)%>
            </EmptyDataTemplate>
        </asp:GridView>
        &nbsp;
        <table width="699" border="0" cellspacing="0" cellpadding="0" align="center">
            <tr>
                <td>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" HorizontalAlign="Center" OnPageChanged="AspNetPager1_PageChanged"
                        ShowCustomInfoSection="Left" Width="100%" meta:resourceKey="AspNetPager1" Style="font-size: 12px"
                        InputBoxStyle="width:19px" CustomInfoHTML="当前页  <font color='red'><b>%CurrentPageIndex%</b></font> 总页数  %PageCount%  当前条数 %StartRecordIndex%-%EndRecordIndex%"
                        FirstPageText="首页" LastPageText="末页" NextPageText="下一页" PrevPageText="上一页">
                    </webdiyer:AspNetPager>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
